import request from '@/utils/request'
export function getRoleListApi(params) {
  return request({
    url: '/sys/role',
    method: 'get',
    params

  })
}

export const getRoleManagerApi = () => {
  return request({
    url: '/sys/user/simple',
    method: 'get'

  })
}
export const getRoleInfoApi = (id) => {
  return request({
    url: '/company/department/' + id,
    method: 'get'

  })
}
export const addRoleApi = (data) => {
  return request({
    url: '/sys/role',
    method: 'post',
    data

  })
}
export const editRoleApi = (data) => {
  return request({
    url: '/sys/role/' + data.id,
    method: 'put',
    data

  })
}
export const delRoleApi = (id) => {
  return request({
    url: '/sys/role/' + id,
    method: 'delete'

  })
}

